<template>
	<view class="content">
		<view>
			<text class="title">{{title}}</text>
		</view>
		<van-icon name="chat-o" dot />
		<van-button type="primary">主要按钮</van-button>
		<van-button type="success">成功按钮</van-button>
		<van-button type="default">默认按钮</van-button>
		<van-button type="danger">危险按钮</van-button>
		<van-button type="warning">警告按钮</van-button>
	</view>
</template>

<script>
	import { defineComponent, reactive, toRefs, onMounted } from "vue"
	import {getCodeImg,setIogin} from '@/api/login.js'
	export default defineComponent({
		props: {},
		setup(props, {emit}) {
			const state = reactive({
				username:"admin",
				password:"admin123"
			})
			const methods = {}
			const apis = {}
			const computeds = {}
			 onMounted(()=>{
				console.log(import.meta.env)
				getCodeImg().then(res=>{})
			 })
			return{
				...apis,
				...toRefs(state),
				...methods,
				...computeds
			}
		}
	})
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin: 200rpx auto 50rpx auto;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
